package com.songcha.library_business.util

import com.songcha.library_business.LibraryBusinessApplication
import com.songcha.library_common.LibraryCommon
import java.io.File

class BookFileUtil {
    companion object{
        @JvmStatic
        fun getBookFile(bookId:String):File{
            return File(LibraryCommon.getContext().externalCacheDir!!.absolutePath+"/cache/book/"+bookId+"/")
        }

        @JvmStatic
        fun getBookFilePath(bookId:String):String{
            return LibraryCommon.getContext().externalCacheDir!!.absolutePath+"/cache/book/"+bookId+"/"
        }

        @JvmStatic
        fun getBookDownloadFilePath():String{
            return LibraryCommon.getContext().externalCacheDir!!.absolutePath+"/download/book/"
        }
    }
}